SUM Function

Modified on 2011/07/22 07:31 by Chad Lowe (CTS) — Categorized as: Uncategorized

SUM( <value>, <periods> )

Computes the sum of the values over the specified number of periods.

Function Parameters
ParameterDescription
<value>The value field to compute (e.g. CLOSE, HIGH, (H+L+C)/3, etc.)
<periods>The number of periods to sum over.

Example:

SUM(VOLUME, 5)

Example Data
DateOpenHighLowCloseVolumeSUM(VOLUME, 5)
06/01/201175100760507410075875106528
06/02/20117575077000754507665081891
06/03/20117655076900751007520080819
06/06/20117540075800731507317582726
06/07/20117320073775729257367572927424891
06/08/201173875766507345076275113339431702
06/09/201176400793007595078425120824470635
06/10/20117850079975777257857586989476805
06/13/20117860079250777257817578661472740
06/14/201177925779507525075450112682512495
06/15/201176025762257255072575130420529576
06/16/201172575728506987570025125316534068
06/17/20117005071450691257020093140540219
06/20/20117045070775695507015063702525260
06/21/20117030071925702257082571108483686
06/22/201168125685006502565025127015480281
06/23/201165000653006200064675138220493185
06/24/20116522565675628006287578876478921



Back to the Scripting Function Reference